<!--this page is to select the type of search and a query to search in the employees table-->
<?php
//written by: Marcos Resendiz
session_start();
require_once 'php_includes.php';
//Make sure logged in
checkLogin();		
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Payroll and Timesheet Management Website</title>
    <link rel="stylesheet" type="text/css" href="styles.css"/>
  </head>
  <body>
  <?php writeHeader();?>

		<p>
	<span class="pageheader">Search for an employee:</span>
        <br />
	</p>
	<form action ="search_results.php" method="post"> 

	<div class="left_side">
		Search:<br/>
		Query:<br/>
	</div>
	<!---Select menu to search an employee-->
	<div class="middle_cont">
		<select name="searchType" id="type">
			<option value="EmployeeFName">Employee Name</option>
			<option value="EmployeeID">Employee ID</option>
			<option value="EmployeeDepart">Department</option>
			<option value="EmployeeTeam">Team</option>
			<option value="ManagerID">Manager ID</option>
			<option value="ManagerName">Manager Name</option>
		</select>

		<br/>
		<input type="text" name="query" id="query" size="25"/><br/> <!--what the user want to search-->
	</div>
	<p>
	<br/>
		<input type="submit" value="Search for Employee" class="button" /> <!--button so start search-->
	</p>
	</form>

	
  </body>
</html>